﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace PNProject
{
    public class AdminService
    {
        public static bool CheckUser(string username)
        {
            var user = StaticData.xuserRepo.GetOne(a => a.Username == username);
            if (user != null)
            {
                bool flag = user.IsBlocked.HasValue ? user.IsBlocked.Value : true;
                return !flag;
            }
            else
                return false;
        }

    }
}